package com.leapp.sk.viewdelegate.task

import android.content.Context
import android.widget.GridView
import com.example.mvp.delegate.BaseAppDelegate
import com.leapp.sk.R
import com.leapp.sk.bean.ParentingTaskEntity
import com.leapp.sk.ui.adapter.TaskCompleteDegreeAdapter

/**
 * 未提交视图托管类
 * @author  chaohaipeng  on 2018/8/10.
 */
class UnSubmitDelegate : BaseAppDelegate(){
    override fun initWidget() {
    }

    override fun initLayoutRes(): Int {
        return R.layout.fragment_submit_no_complete
    }
    /**
     * 初始化适配器
     */
    fun initAdapter(context: Context, mlist: List<ParentingTaskEntity>){
        val gv_fsnc_list = getView<GridView>(R.id.gv_fsnc_list)
        val taskCompleteDegreeAdapter = TaskCompleteDegreeAdapter(context, mlist)
        gv_fsnc_list.adapter=taskCompleteDegreeAdapter

    }
}